const result = (code,msg, data) => {
    return {
        code: code,
        msg: msg,
        data:data
    }
}

const success = (data) => {
    return result('200', '请求成功！', data);
}

const error = () => {
    return result('500', '请求失败！');
}

exports.result = result;
exports.success = success;
exports.error = error;